package com.example.enterprisemanager.mvvm.adapter;

import com.example.enterprisemanager.R;
import com.example.enterprisemanager.base.BaseBindingAdapter;
import com.example.enterprisemanager.base.BaseBindingViewHolder;
import com.example.enterprisemanager.databinding.ItemShoppingGoodsBinding;
import com.example.enterprisemanager.mvvm.fragment.manager.ben.WaitPurchase;

public class WaitPurchaseAdapter extends BaseBindingAdapter<WaitPurchase, BaseBindingViewHolder> {
    public WaitPurchaseAdapter() {
        super(R.layout.item_shopping_goods);
    }

    @Override
    protected void convert(BaseBindingViewHolder helper, WaitPurchase item) {
        helper.addOnClickListener(R.id.btn_buy);
        ItemShoppingGoodsBinding bind = helper.getBinding();
        bind.setGoods(item);
    }
}
